package com.huang.mylibrary.db;

import android.util.Log;

import com.huang.mylibrary.bean.ImageListInfo;
import com.huang.mylibrary.dao.ImageListInfoDao;

import java.util.List;

public class ImageListInfoHelper extends BaseHelper<ImageListInfoDao>{

    public ImageListInfoHelper(ImageListInfoDao dao) {
        super(dao);
    }


    public void  addList(List<ImageListInfo> list){
        dao.insertOrReplaceInTx(list);
    }


    public List<ImageListInfo> getListByPeopleId(long peopleId){
      return   dao.queryBuilder().where(ImageListInfoDao.Properties.PeopleId.eq(peopleId)).build().list();
    }
    public int dataIsEmp(){
        return dao.queryBuilder().limit(1).build().list().size();
    }

}
